﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;

namespace GMAC.ReportingSystem.Business.Entities
{
    /// <summary>
    /// Clase usada para reprsentar los registros de la tabla [TemporaryPlantFile]
    /// que es usada para la carga masiva de las ventas que se realizan a nivel nacional por los consecionarios
    /// </summary>
    //[DbProcedures(Insert = "", Update = "", Delete = "")]
    public class StringPlantFile : BusinessEntity
    {
        public String   RetailInvoiceDate { get; set; }
	    public String   Dealer { get; set; }
	    public String   DealerNumber { get; set; }
	    public String   VehicleIdentification { get; set; }
	    public String   ModelCode { get; set; }
	    public String   ModelDescription { get; set; }
	    public String   WholesaleDistributionChannel { get; set; }
	    public String   Estatus { get; set; }
	    public String   PaymentForm { get; set; }
	    public String   PlaquePatent { get; set; }
	    public String   ContactName { get; set; }
	    public String   ContactLastName { get; set; }
	    public String   Year { get; set; }
	    public String   ContactAddress { get; set; }
	    public String   ContactMobilePhone { get; set; }
	    public String   residencyTelephoneContact { get; set; }
	    public String   ContactCity { get; set; }
	    public String   DeliveryDate { get; set; }
	    public String   ZoneID { get; set; }
	    public String   SalesDetail { get; set; }
	    public String   SectorSales { get; set; }
	    public String   PlanFileType { get; set; }
        public DateTime LoadDate { get; set; }
	    public int      UserID { get; set; }
	    public bool     bitStatus { get; set; }
	    public String   RejectionReason { get; set; }
        public String RejectionReason_Small
        {
            get
            {
                return (RejectionReason.Length > 50) ? RejectionReason.Substring(0, 50) : RejectionReason;
            }
        } // RejectionReason_Small

    } // class

    /// <summary>
    /// Colecion de StringPlantFile
    /// </summary>
    public class StringPlantFileCollection : List<StringPlantFile>
    { }

} // namespace
